<{include file="admincp_header.htm"}>
<body>
<div class="block"></div>
<form action="admincp.php?action=modules&job=savemodule" method="post">
<table border="0" cellspacing="1" cellpadding="4" class="commontable" align="center">
<input type="hidden" name="id" value="<{$id}>">
	<tr class="header">
		<td colspan="2"><div class="righttop"><a href="http://www.akcms.com/manual/modules.htm" target="_blank"><{$lan.help}></a></div><{if $modulename == ''}><{$lan.add}><{else}><{$lan.edit}><{/if}><{$lan.space}><{$lan.module}></td>
	</tr>
	<tr>
		<td><{$lan.modulename}></td>
		<td><input type="text" name="modulename" size="9" value="<{$modulename}>"></td>
	</tr>
	<tr>
		<td><{$lan.ifcreatehtml}></td>
		<td><input type="radio" id="html0" name="html" value="0"<{if $html eq 0}> checked<{/if}>><label for="html0"><{$lan.withglobal}></label>&nbsp;<input type="radio" id="html1" name="html" value="1"<{if $html eq 1}> checked<{/if}>><label for="html1"><{$lan.yes}></label>&nbsp;<input type="radio" id="html-1" name="html" value="-1"<{if $html eq -1}> checked<{/if}>><label for="html-1"><{$lan.no}></label></td>
	</tr>
	<tr>
		<td><{$lan.ispage}></td>
		<td><input type="radio" id="page1" name="page" value="1"<{if $page eq 1}> checked<{/if}>><label for="page1"><{$lan.yes}></label>&nbsp;<input type="radio" id="page-1" name="page" value="-1"<{if $page eq -1}> checked<{/if}>><label for="page-1"><{$lan.no}></label></td>
	</tr>
	<tr>
		<td><{$lan.numperpage}></td>
		<td><input type="text" name="numperpage" value="<{$numperpage}>" size="9"></td>
	</tr>
	<tr>
		<td><{$lan.picturemaxsize}></td>
		<td><input type="text" name="picturemaxsize" value="<{$picturemaxsize}>" size="9"></td>
	</tr>
	<tr>
		<td colspan="2">
			<table border="0" cellspacing="1" cellpadding="5" class="commontable" align="center" id="fieldslist">
				<tr class="header">
					<td colspan="8"><{$lan.fieldsetting}></td>
				</tr>
				<tr>
					<td><{$lan.field}></td>
					<td><{$lan.alias}></td>
					<td><{$lan.order}></td>
					<td><{$lan.listorder}></td>
					<td><{$lan.description}></td>
					<td><{$lan.default}></td>
					<td><{$lan.fieldsize}></td>
					<td><{$lan.type}></td>
				</tr>
<{$fieldshtml}>
			</table>
			<div class="block2"></div>
			<center><input type="submit" value="<{$lan.save}>" /></center>
		</td>
	</tr>
</table>
</form>
<script>
function addfield() {
	var trid = fieldslist.rows.length;
	var objRow = fieldslist.insertRow(trid);
	var objCel = objRow.insertCell(0);
	objCel.innerHTML = "<input type='text' name='extfield" + trid + "' value='' size='12'>";
	var objCel = objRow.insertCell(1);
	objCel.innerHTML = "<input type='text' name='extfield_alias" + trid + "' value='' size='10'>";
	var objCel = objRow.insertCell(2);
	objCel.innerHTML = "<input type='text' name='extfield_order" + trid + "' value='' size='3'>";
	var objCel = objRow.insertCell(3);
	objCel.innerHTML = "<input type='text' name='extfield_listorder" + trid + "' value='' size='3'>";
	var objCel = objRow.insertCell(4);
	objCel.innerHTML = "<input type='text' name='extfield_description" + trid + "' value='' size='16'>";
	var objCel = objRow.insertCell(5);
	objCel.innerHTML = "<input type='text' name='extfield_default" + trid + "' value='' size='10'>";
	var objCel = objRow.insertCell(6);
	objCel.innerHTML = "<input type='text' name='extfield_size" + trid + "' value='' size='9'>";
	var objCel = objRow.insertCell(7);
	objCel.innerHTML = "<select name='extfield_type" + trid + "' id='extfield_type" + trid + "' ><option value='plain'><{$lan.plaintext}></option><option value='rich'><{$lan.richtext}></option></select>";
}
</script>
</body>
</html>